Skip to content

ci(process-daemon): stop pinning the protocol in the Windows smoke test - #61889

Merged
jlongster merged 2 commits into
devfrom
ci-drop-pty-version-check
Nov 5, 2026
Merged

jlongster merged 2 commits into
devfrom
ci-drop-pty-version-check

Conversation

@jlongster

@jlongster jlongster commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The Windows smoke step in check-process-daemon.yml compared opencode-pty --version against a hardcoded (protocol 7), so every protocol bump needed a workflow change (and workflow approval). It still checks that the binary reports the crate version, but now accepts any protocol number: the output must match opencode-pty <crate version> (protocol <number>), the format printed in packages/process-daemon/src/client.rs.

Needed for #61875 (protocol 8), which then doesn't have to edit the workflow.

How did you verify your code works?

Checked the pattern against the binary's format string ("opencode-pty {} (protocol {})"). The PowerShell isn't run locally (no pwsh here); CI on this PR runs the step on Windows.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@jlongster
jlongster requested a review from a team November 5, 2026 02:39

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I read the step on the PR head (CI-only, so nothing to run locally). The $LASTEXITCODE check after --version is still there, and nothing left in the step uses $version. Public API: unchanged (CI workflow only).

One thing to check for #61875: release-process-daemon.yml still pins PROTOCOL_VERSION: 7 and compares the --version output against it in several places. The protocol 8 bump will still need a workflow edit there, unless that pin is meant to stay in the release workflow. There is also a small suggestion inline about keeping the crate-version check.

thdxr
thdxr previously approved these changes Nov 5, 2026

@thdxr thdxr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@thdxr thdxr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The earlier point is addressed: the step checks the crate version again and accepts any protocol number. I read the pattern against the --version format string in packages/process-daemon/src/client.rs, and the PowerShell quoting and escaping look right (no pwsh here to run it). Public API: unchanged (CI workflow only). Nothing new to flag.

@jlongster
jlongster merged commit ceb8288 into dev Nov 5, 2026
20 checks passed
@jlongster
jlongster deleted the ci-drop-pty-version-check branch November 5, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants